﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/Admin/Admin.master" AutoEventWireup="true" CodeFile="ThamSoNguoiDung.aspx.cs" Inherits="QLVB_Admin_CaiDatThamSoNguoiDung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="border-style: double; width: 758px;">
    <tr>
        <td colspan="3">
            <asp:Label ID="lblBangLoaiNguoiDung" runat="server" Text="BẢNG LOẠI NGƯỜI DÙNG"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblMaLoaiNguoiDung" runat="server" Text="Mã loại người dùng:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtMaLoaiNguoiDung" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblTenLoaiNguoiDung" runat="server" Text="Tên loại người dùng:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTenLoaiNguoiDung" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:Button ID="btnThemLoaiNguoiDung" runat="server" Text="Thêm" 
                Width="100px" onclick=" btnThemLoaiNguoiDung_Click" />
            <asp:Button ID="btnXoaLoaiNguoiDung" runat="server" Text="Xóa" 
                Width="100px" onclick=" btnXoaLoaiNguoiDung_Click" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
                <asp:GridView ID="gvLoaiNguoiDung" runat="server" AutoGenerateColumns="False" 
                    Width="100%" AllowPaging="True" PageSize="2" DataKeyNames="MaLoaiNguoiDung" 
                    onpageindexchanging=" gvLoaiNguoiDung_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaLoaiNguoiDung" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaLoaiNguoiDung" runat="server" Text="Mã loại người dùng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaLoaiNguoiDung" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaLoaiNguoiDung") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenLoaiNguoiDung" runat="server" Text="Tên loại người dùng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenLoaiNguoiDung" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenLoaiNguoiDung") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatLoaiNguoiDung.aspx?MaLoaiNguoiDung=" + Eval("MaLoaiNguoiDung") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:Label ID="lblChucVu" runat="server" Text="BẢNG CHỨC VỤ"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblMaChucVu" runat="server" Text="Mã chức vụ:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtMaChucVu" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblTenChucVu" runat="server" Text="Tên chức vụ:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTenChucVu" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:Button ID="btnThemChucVu" runat="server" Text="Thêm" 
                Width="100px" onclick="btnThemChucVu_Click" />
            <asp:Button ID="btnXoaChucVu" runat="server" Text="Xóa" 
                Width="100px" onclick="btnXoaChucVu_Click" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
                <asp:GridView ID="gvChucVu" runat="server" AutoGenerateColumns="False" 
                    Width="100%" AllowPaging="True" PageSize="2" DataKeyNames="MaChucVu" 
                    onpageindexchanging=" gvChucVu_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaChucVu" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaChucVu" runat="server" Text="Mã chức vụ:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaChucVu" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaChucVu") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenChucVu" runat="server" Text="Tên chức vụ:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenChucVu" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenChucVu") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatChucVu.aspx?MaChucVu=" + Eval("MaChucVu") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:Label ID="lblBangPhong" runat="server" Text="BẢNG PHÒNG"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblMaPhong" runat="server" Text="Mã phòng:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtMaPhong" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblTenPhong" runat="server" Text="Tên phòng:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTenPhong" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblDienThoaiNoiBo" runat="server" Text="Điện thoại nội bộ:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtDienThoaiNoiBo" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblDienThoaiNgoai" runat="server" Text="Điện thoại ngoài:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtDienThoaiNgoai" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblFax" runat="server" Text="Fax:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:Button ID="btnThemPhong" runat="server" Text="Thêm" 
                Width="100px" onclick="btnThemPhong_Click" />
            <asp:Button ID="btnXoaPhong" runat="server" Text="Xóa" 
                Width="100px" onclick="btnXoaPhong_Click" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
                <asp:GridView ID="gvPhong" runat="server" AutoGenerateColumns="False" 
                    Width="100%" AllowPaging="True" DataKeyNames="MaPhong" 
                    onpageindexchanging=" gvPhong_PageIndexChanging" PageSize="2">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaPhong" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaPhong" runat="server" Text="Mã phòng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaChucVu0" runat="server" Enabled="False" 
                                                Text='<%# Eval("MaPhong") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenPhong" runat="server" Text="Tên phòng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTenPhong" runat="server" Enabled="False" 
                                                Text='<%# Eval("TenPhong") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblDienThoaiNoiBo" runat="server" Text="Điện thoại nội bộ:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDienThoaiNoiBo" runat="server" 
                                                Text='<%# Eval("DienThoaiNoiBo") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblDienThoaiNgoai" runat="server" Text="Điện thoại ngoài:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDienThoaiNgoai" runat="server" 
                                                Text='<%# Eval("DienThoaiNgoai") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFax" runat="server" Text="Fax:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFax" runat="server" Text='<%# Eval("Fax") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatPhong.aspx?MaPhong=" + Eval("MaPhong") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
    </tr>
    </table>
</asp:Content>

